<template>
  <div class="risk">
    <page-tab-list
      url="/SyQualityTemplate/GetPageData"
      :params="params"
      :showTab="false"
      @initList="_initList"
    >
      <template v-for="dataItem in list">
        <van-cell
          :key="dataItem.TCode"
          @click="goDetail(dataItem)"
          class="card"
        >
          <div class="title">{{ dataItem.Title }}</div>
          <van-row>
            <van-col span="12">
              <img src="@/assets/Images/AppIcon/icon_list_kind.png" class="icon" />{{
                dataItem.CheckTypeName
              }}</van-col
            >
            <van-col span="12">
              <img src="@/assets/Images/AppIcon/icon_list_type.png"  class="icon" />{{
                dataItem.CheckFrequencyName
              }}</van-col
            >
          </van-row>
          <div class="remarks">
            {{ dataItem.Remarks }}
          </div>
        </van-cell>
      </template>
    </page-tab-list>
  </div>
</template>

<script>
import PageTabList from "@/components/PageTabList/PageTabList.vue";
export default {
  components: { PageTabList },
  data() {
    return {
      show: false,
      loaded: false,
      result: [],
      resultData: [],
      active: 0,
      value: "",
      conditions: [],
      list: [],
      params: [
        {
          title: "质量检查表",
          dataType: "CompanyList",
        },
      ],
    };
  },
  methods: {
    _initList(list) {
      this.list = list;
    },
    goDetail(item) {
      this.$router.push({
        path: "/SytechDanger/DangerCheckTemplateDetail",
        query: { tCode: item.TCode },
      });
    },
  },
};
</script>

<style lang="less" scoped>
.title {
  color: #333;
  font-size: 15px;
}

.remarks {
  color: #666;
  font-size: 14px;
}

.risk {
  height: 100vh;
  background-color: #e8f1f8;
}
.all_dep {
  background-color: #ffffff;
}
.warn_item {
  margin: 10px;
  /*margin-bottom: 10px;*/
  padding: 10px 0 10px 10px;
  border-radius: 5px;
  position: relative;
}
.warn_header {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-bottom: 10px;
  .warn_tag {
    position: absolute;
    right: 0;
    top: 0;
    border-radius: 26.64rem 0 0 26.64rem;
  }
}
.dep_sort {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  img {
    height: 15px;
    width: 15px;
    margin-right: 5px;
  }
}

.btm_item {
  display: flex;
  align-items: center;
  img {
    height: 15px;
    width: 15px;
    margin-right: 5px;
  }
}
.dep_item {
  width: 100%;
  padding: 10px;
  background-color: #e8f1f8;
}
.dep_item_detail {
  /* margin: 10px;*/
  padding: 10px;
  border-radius: 5px;
  background-color: #ffffff;
  position: relative;
  margin-bottom: 10px;
  /* border-bottom: 1px solid #e8f1f8;*/
  .dep_name {
    font-size: 16px;
    margin-bottom: 10px;
  }
  .dep_sort {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    img {
      height: 15px;
      width: 15px;
      margin-right: 5px;
    }
  }
  .dep_btm {
    display: flex;
    justify-content: flex-end;
    font-size: 12px;
    .btm_item {
      display: flex;
      align-items: center;
      img {
        height: 15px;
        width: 15px;
        margin-right: 5px;
      }
    }
  }
}

.tags {
  position: absolute;
  right: 0;
  top: 0;
  border-radius: 26.64rem 0 0 26.64rem;
}

.van-divider {
  margin: 0px;
  margin-top: 5px;
  margin-bottom: 5px;
}
</style>
